﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TecBaseObjects.Objects;
using TecData.Layer;

namespace TecData.Manager {
    public class ProjectCaseManager {

        #region Members
        #endregion

        #region Load

        public static ProjectCaseObject LoadProjectCase(int ProjectID) {
            using(ProjectCaseDataLayer dl = CreateProjectCaseDataLayer()) {
                return dl.LoadProjectObject(ProjectID);
            }
        }

        public static ProjectCaseObject LoadProjectCase(string MatchCode) {
            using(ProjectCaseDataLayer dl = CreateProjectCaseDataLayer()) {
                return dl.LoadProjectObject(MatchCode);
            }
        }

        #endregion

        #region Save
        #endregion

        #region Functions

        private static ProjectCaseDataLayer CreateProjectCaseDataLayer() {
            return (DataManager.CreateDataLayer(typeof(ProjectCaseDataLayer)) as ProjectCaseDataLayer);
        }

        #endregion

    }
}
